<li class="banner_image_main_cont">
	<div class="banner_image_remove">
		<?php echo $aMessages['admin_banners_remove_banner']; ?>
	</div>
	<div class="<?php echo $this->config->item('site_accr'); ?>_clear"></div>
	<div class="banner_image_handle">
	</div>
	
	<div class="banner_image_cont">
		<div class="banner_image_tabs">
			<div class="banner_image_tab banner_image_image_tab banner_image_tab_selected">
				<?php echo $aMessages['admin_banners_tab_image']; ?>
			</div>
			<div class="banner_image_tab banner_image_text_tab">
				<?php echo $aMessages['admin_banners_tab_text']; ?>
			</div>
			<div class="<?php echo $this->config->item('site_accr'); ?>_clear"></div>
		</div>
		<div class="banner_image_tabs_content">
			<div class="banner_image_image">
				
				<input type="hidden" name="media_id[]" value="<?php echo $oBannerImages->media_id; ?>" />
				
				<img alt="" src="<?php
				
				if ($oBannerImages->media_id !== '')
				{
					echo $this->config->item('admin_media_dir_url').'/thumbs/'.$oBannerImages->media_subfolder.'/'.$oBannerImages->media_id.'.'.$oBannerImages->extension_ext; 
				}
				
				?>" />
					
				<button class="banner_select_img"><?php echo $aMessages['admin_banners_select_image']; ?></button>
					
			</div>
			<ul class="banner_image_text">
				<?php
				
				// if each banner image can have multiple text elements
				
				for ($i = 0; $i < $this->config->item('banner_images_text_count'); $i++)
				{
					
					?>
					<li class="banner_image_text_cont">
						<div class="banner_image_text_field">
							<div>Title</div>
							<input type="text" class="text_header" name="text_header[]" value="<?php echo $aBannerText[$i]->text_header; ?>" size="30" maxlength="80" />
						</div>
						<div class="banner_image_text_field">
							<div>Content</div>
							<textarea class="text_content" rows="3" cols="40" name="text_content[]"><?php echo $aBannerText[$i]->text_content; ?></textarea>
						</div>
						<div class="banner_image_text_field" style="display: none;">
							<div>URL <span>(select)</span></div>
							<span></span>
							
							<input type="text" class="page_id" name="page_id[]" value="<?php echo $aBannerText[$i]->page_id; ?>" />
						</div>
						<div class="banner_image_text_field">
							<div>Auto expand <input type="radio" class="text_expanded" value="Y" <?php if ($aBannerText[$i]->text_expanded === 'Y') { echo ' checked="checked"'; } ?> /></div>
						</div>
					</li>
					<?php
				}
				
				?>
			</ul>
		</div>
	</div>
	
	<div class="<?php echo $this->config->item('site_accr'); ?>_clear"></div>
</li>